package cn.cheln.explorer.util;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import cn.cheln.explorer.func.AppSrc;
import cn.cheln.explorer.ui.ViewHolder;
import com.direction.hold.ui.CountActivity;
import com.direction.hold.ui.FileCursorActivity;

public class PackageReceiver extends BroadcastReceiver
{
  private Activity countActivity;

  public PackageReceiver(Activity paramActivity)
  {
    this.countActivity = paramActivity;
  }

  public void onReceive(Context paramContext, Intent paramIntent)
  {
    if ((!(paramIntent.getAction().equals("android.intent.action.PACKAGE_ADDED"))) && (!(paramIntent.getAction().equals("android.intent.action.PACKAGE_REMOVED"))))
      return;
    AppSrc.initInstalledApps(paramContext);
    if (CountActivity.categoryActivity == null)
      return;
    CountActivity.categoryActivity.getViewHolder(FileCursorActivity.class.getName()).refresh();
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.explorer.util.PackageReceiver
 * JD-Core Version:    0.5.2
 */